<template>
  <div class="bg" style="background: #091739">
    <div class="header">
      <img src="../img/head.svg">
      <div class="box">
        <div class="title" style="cursor: pointer;" @click="goHome">数智化控制中心</div>
      </div>
    </div>

    <div class="dp_con">
      <div class="left" style="width: 20vw">
        <div class="card">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>设备状态</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="sbdxj_t1">
              <div class="flex-0">
                <img src="../img/icon11.svg">
              </div>
              <div class="">
                <p class="text1">3950轧机</p>
                <p class="text2" v-if="plcValues.run">设备运行</p>
                <p class="text2" v-else style="color: #FF0000">设备停运</p>

              </div>
            </div>
          </div>
        </div>

        <div class="card">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>监测区域</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body">
            <div class="sbdxj_t2">
              <div class="flex_c_c">
                <div class="flex-0">
                  <img src="../img/icon12.svg">
                </div>
                <div class="flex-0">
                  <p class="text1" style="cursor: pointer" @click="openGYDXS">高压地下室</p>
                </div>
              </div>
              <div class="flex_c_c">
                <div class="flex-0">
                  <img src="../img/icon12.svg">
                </div>
                <div class="flex-0">
                  <p class="text1" style="cursor: pointer" @click="openDYDXS">低压地下室</p>
                </div>
              </div>
              <div class="flex_c_c">
                <div class="flex-0">
                  <img src="../img/icon12.svg">
                </div>
                <div class="flex-0">
                  <p class="text1" style="cursor: pointer" @click="openRYDXS">乳液地下室</p>
                </div>
              </div>
              <div class="flex_c_c">
                <div class="flex-0">
                  <img src="../img/icon12.svg">
                </div>
                <div class="flex-0">
                  <p class="text1" style="cursor: pointer" @click="openXYDXS">稀油地下室</p>
                </div>
              </div>

            </div>
          </div>
        </div>
      </div>
      <div class="w-100">
        <div class="sbdxj_t4">
          <img class="sb" src="../img/p12.png">
          <div class="card2">
            <div class="bg2">
              <div class="r1">
                <img src="../img/card1.png">
                <img src="../img/card2.png">
                <img src="../img/card3.png">
              </div>
              <img class="r2" src="../img/card4.png">
              <div class="r3">
                <img src="../img/card5.png">
                <img src="../img/card6.png">
                <img src="../img/card7.png">
              </div>
            </div>
            <div class="box">
              <table class="sbdxj_t3">
                <tr>
                  <td rowspan="7">上辊</td>
                  <td class="text2">上辊扭矩</td>
                  <td><input readonly  v-model="plcValues.upper_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">上辊电流</td>
                  <td><input readonly v-model="plcValues.upper_current"></td>
                  <td>A</td>
                </tr>
                <tr>
                  <td class="text2">上辊线速度</td>
                  <td><input readonly v-model="plcValues.upper_speed"></td>
                  <td>m/s</td>
                </tr>
                <tr>
                  <td class="text2">上辊电机温度</td>
                  <td><input readonly v-model="plcValues.upper_motor_t"></td>
                  <td>℃</td>
                </tr>
                <tr>
                  <td class="text2">上主电机转速</td>
                  <td><input readonly v-model="plcValues.upper_motor_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">上辊轴瓦温度1</td>
                  <td><input v-model="plcValues.upper_roller_bearing_t1"></td>
                  <td>℃</td>
                </tr>
                <tr>
                  <td class="text2">上辊轴瓦温度2</td>
                  <td><input readonly v-model="plcValues.upper_roller_bearing_t2"></td>
                  <td>℃</td>
                </tr>
              </table>
            </div>
          </div>
          <div class="card2" style="left: 36%">
            <div class="bg2">
              <div class="r1">
                <img src="../img/card1.png">
                <img src="../img/card2.png">
                <img src="../img/card3.png">
              </div>
              <img class="r2" src="../img/card4.png">
              <div class="r3">
                <img src="../img/card5.png">
                <img src="../img/card6.png">
                <img src="../img/card7.png">
              </div>
            </div>
            <div class="box">
              <table class="sbdxj_t3">
                <tr>
                  <td rowspan="7">压下</td>
                  <td class="text2">压下齿轮箱压力</td>
                  <td>
                    <input v-if="plcValues.press_down_gbx_pressure===constant.yali_alarm" style="color: #FF0000" readonly value="警告">
                    <input v-else style="color: #00f535" readonly value="正常">
                  </td>
                  <td></td>
                </tr>
                <tr>
                  <td class="text2">传动侧压下电机转速</td>
                  <td><input readonly v-model="plcValues.press_down_motor1_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">传动侧压下电机转矩</td>
                  <td><input readonly v-model="plcValues.press_down_motor1_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">传动侧压下电机电流</td>
                  <td><input v-model="plcValues.press_down_motor1_current"></td>
                  <td>A</td>
                </tr>
                <tr>
                  <td class="text2">操作侧压下电机转速</td>
                  <td><input readonly v-model="plcValues.press_down_motor2_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">操作侧压下电机转矩</td>
                  <td><input readonly v-model="plcValues.press_down_motor2_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">操作侧压下电机电流</td>
                  <td><input readonly v-model="plcValues.press_down_motor2_current"></td>
                  <td>A</td>
                </tr>
              </table>
            </div>
          </div>

          <div class="card" style="position: absolute;right: 0;top: 0">
            <div class="title">
              <img class="icon1" src="../img/icon1.svg">
              <span>主传动</span>
              <img class="icon2" src="../img/icon2.svg">
            </div>
            <div class="body">
              <table class="sbdxj_t3">
                <tr>
                  <td class="text1">下主电机</td>
                  <td>自由端垂直</td>
                  <td><input readonly v-model="FK01Values['ch0.RMS']"></td>
                  <td>m/s2</td>
                </tr>
                <tr>
                  <td></td>
                  <td>自由端水平</td>
                  <td><input readonly v-model="FK01Values['ch1.RMS']"></td>
                  <td>m/s2</td>
                </tr>
                <tr>
                  <td class="text1"></td>
                  <td>驱动端垂直</td>
                  <td><input readonly v-model="FK01Values['ch2.RMS']"></td>
                  <td>m/s2</td>
                </tr>
                <tr>
                  <td></td>
                  <td>驱动端水平</td>
                  <td><input readonly v-model="FK01Values['ch3.RMS']"></td>
                  <td>m/s2</td>
                </tr>

              </table>
            </div>
          </div>

          <div class="card2" style="bottom: 0;top: auto">
            <div class="bg2">
              <div class="r1">
                <img src="../img/card1.png">
                <img src="../img/card2.png">
                <img src="../img/card3.png">
              </div>
              <img class="r2" src="../img/card4.png">
              <div class="r3">
                <img src="../img/card5.png">
                <img src="../img/card6.png">
                <img src="../img/card7.png">
              </div>
            </div>
            <div class="box">
              <table class="sbdxj_t3">
                <tr>
                  <td rowspan="9">下辊</td>
                  <td class="text2">下辊扭矩</td>
                  <td><input readonly v-model="plcValues.lower_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">下辊电流</td>
                  <td><input readonly v-model="plcValues.lower_current"></td>
                  <td>A</td>
                </tr>
                <tr>
                  <td class="text2">下辊线速度</td>
                  <td><input readonly v-model="plcValues.lower_speed"></td>
                  <td>m/s</td>
                </tr>
                <tr>
                  <td class="text2">下辊电机温度</td>
                  <td><input readonly v-model="plcValues.lower_motor_t"></td>
                  <td>℃</td>
                </tr>
                <tr>
                  <td class="text2">下主电机转速</td>
                  <td><input readonly v-model="plcValues.lower_motor_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">下辊轴瓦温度1</td>
                  <td><input readonly v-model="plcValues.lower_roller_bearing_t1"></td>
                  <td>℃</td>
                </tr>
                <tr>
                  <td class="text2">下辊轴瓦温度2</td>
                  <td><input readonly v-model="plcValues.lower_roller_bearing_t2"></td>
                  <td>℃</td>
                </tr>
                <tr>
                  <td class="text2">轧制力</td>
                  <td><input readonly v-model="plcValues.roll_force"></td>
                  <td>N</td>
                </tr>
                <tr>
                  <td class="text2">轧棍辊缝</td>
                  <td><input readonly v-model="plcValues.roll_gap"></td>
                  <td>mm</td>
                </tr>
              </table>
            </div>
          </div>
          <div class="card2" style="bottom: 8%;top: auto;left: 46%">
            <div class="bg2">
              <div class="r1">
                <img src="../img/card1.png">
                <img src="../img/card2.png">
                <img src="../img/card3.png">
              </div>
              <img class="r2" src="../img/card4.png">
              <div class="r3">
                <img src="../img/card5.png">
                <img src="../img/card6.png">
                <img src="../img/card7.png">
              </div>
            </div>
            <div class="box">
              <table class="sbdxj_t3">
                <tr>
                  <td rowspan="2">中间轴</td>
                  <td class="text2">压力</td>
                  <td>
                    <input v-if="plcValues.middle_shaft_pressure===constant.yali_alarm" style="color: #FF0000" readonly value="警告">
                    <input v-else style="color: #00f535" readonly value="正常">
                  </td>
                  <td></td>
                </tr>
                <tr>
                  <td class="text2">拖瓦压力</td>
                  <td>
                    <input v-if="plcValues.middle_shaft_bearing_pressure===constant.yali_alarm" style="color: #FF0000" readonly value="警告">
                    <input v-else style="color: #00f535" readonly value="正常">
                  </td>
                  <td></td>
                </tr>
              </table>
            </div>
          </div>

          <div class="card2" style="top: 38%;right: 0;left: auto">
            <div class="bg2">
              <div class="r1">
                <img src="../img/card1.png">
                <img src="../img/card2.png">
                <img src="../img/card3.png">
              </div>
              <img class="r2" src="../img/card4.png">
              <div class="r3">
                <img src="../img/card5.png">
                <img src="../img/card6.png">
                <img src="../img/card7.png">
              </div>
            </div>
            <div class="box">
              <table class="sbdxj_t3">
                <tr>
                  <td rowspan="7">立辊</td>
                  <td class="text2">传动侧电机转速</td>
                  <td><input readonly v-model="plcValues.vertical_motor1_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">传动侧电机转矩</td>
                  <td><input readonly v-model="plcValues.vertical_motor1_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">传动侧电机电流</td>
                  <td><input readonly v-model="plcValues.vertical_motor1_current"></td>
                  <td>A</td>
                </tr>

                <tr>
                  <td class="text2">操作侧电机转速</td>
                  <td><input readonly v-model="plcValues.vertical_motor2_rpm"></td>
                  <td>rpm</td>
                </tr>
                <tr>
                  <td class="text2">操作侧电机转矩</td>
                  <td><input readonly v-model="plcValues.vertical_motor2_torque"></td>
                  <td>KN.m</td>
                </tr>
                <tr>
                  <td class="text2">操作侧电机电流</td>
                  <td><input readonly v-model="plcValues.vertical_motor2_current"></td>
                  <td>A</td>
                </tr>


                <tr>
                  <td class="text2">立辊齿轮箱压力</td>
                  <td>
                    <input v-if="plcValues.vertical_roller_gbx_pressure===constant.yali_alarm" style="color: #FF0000" readonly value="警告">
                    <input v-else style="color: #00f535" readonly value="正常">
                  </td>
                  <td></td>
                </tr>
              </table>
            </div>
          </div>

        </div>
      </div>
      <div class="right" style="width: 20vw">
        <div class="card" style="height: calc(33% - 0.625vw)">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>主传动</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body" style="overflow: auto;">
            <table class="sbdxj_t3">
              <tr>
                <td class="text1">上主电机</td>
                <td>自由端垂直</td>
                <td><input readonly v-model="FK02Values['ch4.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>自由端水平</td>
                <td><input readonly v-model="FK02Values['ch5.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td class="text1"></td>
                <td>驱动端垂直</td>
                <td><input readonly v-model="FK01Values['ch6.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>驱动端水平</td>
                <td><input readonly v-model="FK01Values['ch7.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <!--              <tr>-->
              <!--                <td></td>-->
              <!--                <td>输出轴加速度1</td>-->
              <!--                <td><input readonly></td>-->
              <!--                <td>m/s2</td>-->
              <!--              </tr>-->
              <!--              <tr>-->
              <!--                <td></td>-->
              <!--                <td>输出轴加速度2</td>-->
              <!--                <td><input readonly></td>-->
              <!--                <td>m/s2</td>-->
              <!--              </tr>-->
              <!--              <tr>-->
              <!--                <td class="text1">传动轴1</td>-->
              <!--                <td>传动轴加速度1</td>-->
              <!--                <td><input readonly></td>-->
              <!--                <td>m/s2</td>-->
              <!--              </tr>-->
              <!--              <tr>-->
              <!--                <td></td>-->
              <!--                <td>传动轴加速度2</td>-->
              <!--                <td><input readonly></td>-->
              <!--                <td>m/s2</td>-->
              <!--              </tr>-->
              <tr>
                <td class="text1">工作辊</td>
                <td>上工作辊驱动端垂直</td>
                <td><input readonly v-model="FK01Values['ch4.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>下工作辊驱动端垂直</td>
                <td><input readonly v-model="FK01Values['ch5.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>上工作辊自由端水平</td>
                <td><input readonly v-model="FK01Values['ch6.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>下工作辊自由端水平</td>
                <td><input readonly v-model="FK01Values['ch7.RMS']"></td>
                <td>m/s2</td>
              </tr>
            </table>
          </div>
        </div>
        <div class="card" style="height: calc(47% - 0.625vw)">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>立辊</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body" style="overflow: auto;">
            <table class="sbdxj_t3">
              <tr>
                <td class="text1">电机</td>
                <td>传动侧电机驱动端垂直</td>
                <td><input readonly v-model="FK03Values['ch0.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧电机驱动端垂直</td>
                <td><input readonly v-model="FK03Values['ch1.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td class="text1">减速机</td>
                <td>传动侧减速机输入端水平</td>
                <td><input readonly v-model="FK03Values['ch2.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>传动侧减速机输出端水平</td>
                <td><input readonly v-model="FK03Values['ch3.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧减速机输入端水平</td>
                <td><input readonly v-model="FK03Values['ch4.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧减速机输出端水平</td>
                <td><input readonly v-model="FK03Values['ch5.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td class="text1">立辊</td>
                <td>传动侧立辊上端水平</td>
                <td><input readonly v-model="FK03Values['ch6.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>传动侧立辊下端水平</td>
                <td><input readonly v-model="FK03Values['ch7.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧立辊上端水平</td>
                <td><input readonly v-model="FK04Values['ch0.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧立辊下端水平</td>
                <td><input readonly v-model="FK04Values['ch1.RMS']"></td>
                <td>m/s2</td>
              </tr>
            </table>
          </div>
        </div>
        <div class="card" style="height: calc(20% - 0.625vw)">
          <div class="title">
            <img class="icon1" src="../img/icon1.svg">
            <span>压下</span>
            <img class="icon2" src="../img/icon2.svg">
          </div>
          <div class="body" style="overflow: auto;">
            <table class="sbdxj_t3">
              <tr>
                <td class="text1">电机</td>
                <td>传动侧电机驱动端垂直</td>
                <td><input readonly v-model="FK02Values['ch0.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>

                <td></td>
                <td>操作侧电机驱动端垂直</td>
                <td><input readonly v-model="FK02Values['ch2.RMS']"></td>
                <td>m/s2</td>
              </tr>

              <tr>
                <td class="text1">齿轮箱</td>
                <td>传动侧齿轮箱输出端垂直</td>
                <td><input readonly v-model="FK02Values['ch1.RMS']"></td>
                <td>m/s2</td>
              </tr>
              <tr>
                <td></td>
                <td>操作侧齿轮箱输出端垂直</td>
                <td><input readonly v-model="FK02Values['ch3.RMS']"></td>
                <td>m/s2</td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <img src="../img/footer.svg">
    </div>
  </div>
</template>

<script>
import {initTheme} from '@/components/SettingDrawer/settingConfig'
import defaultSettings from '@/config/defaultSettings'
import {SysMixin} from '@/mixins/SysMixin'
import {device_data} from '@/views/kzzx/utils/api'
import constant from '@/views/kzzx/utils/constant'
import Big from 'big.js'
import { getDecimalPlaces } from '@/views/kzzx/utils/util'

export default {
  name: 'xj',
  components: {},
  mixins:[SysMixin],
  beforeCreate () {

  },

  beforeDestroy () {
    if(this.timmer){
      console.log("清除定时器")
      clearTimeout(this.timmer)
    }
  },

  data () {
    return {
      visible:false,
      constant,
      timmer:null,
      interval:1000*60*5,
      //震动数据接口
      vibrationValues:{},
      //轧机数据
      plcValues:{},

      //FK01数据
      FK01Values:{},
      FK02Values:{},
      FK03Values:{},
      FK04Values:{},


    }
  },
  // 监听属性
  computed: {

  },
  created () {},
  mounted () {
    document.title = "设备巡检"
    let that = this
    this.initTheme()
    that.$nextTick(() => {
      that.query()
    })
  },
  destroy () {

  },
  methods: {
    showModal() {
      this.visible = true;
    },
    initTheme(){
      let theme = localStorage.getItem(defaultSettings.localStorageThemeKey)
      initTheme(theme || defaultSettings.primaryTheme)
    },
    handleOk(e) {

      this.visible = false;

    },
    handleCancel(e) {
      this.visible = false;
    },

    query(){
      this.queryDeviceZhaJiData()
      this.queryFK01()
      this.queryFK02()
      this.queryFK03()
      this.queryFK04()

      if(this.timmer){
        clearTimeout(this.timmer)
      }
      this.timmer = setTimeout(() => {
        this.query()
      }, this.interval)
    },

    //查询轧机数据
    queryDeviceZhaJiData(){
      device_data(constant.ZJ3950).then(res=>{
        console.log("接口：/api/device/data/latest","方法：queryDeviceZhaJiData",res)
        if(constant.successCode===res.code){
          let values = res.data.values
          for (let key in values) {
            if(values[key]===null || values[key] === undefined || values[key] === ""){
              values[key]='--'
            }else{
              values[key] = values[key]
              if(getDecimalPlaces(values[key])>3){
                values[key] = Big(values[key]).toFixed(3)
              }
            }
          }
          this.plcValues = values
        }
      })
    },

    //查询FKO1
    queryFK01(){
      device_data(constant.FK01).then(res=>{
        console.log("接口：/api/device/data/latest","方法：queryFK01",res)
        if(constant.successCode===res.code){
          let values = res.data.values
          for (let key in values) {
            if(values[key]){
              values[key] = Big(values[key]).toFixed(2)
            }else{
              values[key]='--'
            }

          }
          this.FK01Values = values
        }
      })
    },

    //查询FKO2
    queryFK02(){
      device_data(constant.FK02).then(res=>{
        console.log("接口：/api/device/data/latest","方法：queryFK02",res)
        if(constant.successCode===res.code){
          let values = res.data.values
          for (let key in values) {
            if(values[key]){
              values[key] = Big(values[key]).toFixed(2)
            }else{
              values[key]='--'
            }

          }
          this.FK02Values = values
        }
      })
    },

    //查询FKO3
    queryFK03(){
      device_data(constant.FK03).then(res=>{
        console.log("接口：/api/device/data/latest","方法：queryFK03",res)
        if(constant.successCode===res.code){
          let values = res.data.values
          for (let key in values) {
            if(values[key]){
              values[key] = Big(values[key]).toFixed(2)
            }else{
              values[key]='--'
            }

          }
          this.FK03Values = values
        }
      })
    },

    //查询FKO4
    queryFK04(){
      device_data(constant.FK03).then(res=>{
        console.log("接口：/api/device/data/latest","方法：queryFK04",res)
        if(constant.successCode===res.code){
          let values = res.data.values
          for (let key in values) {
            if(values[key]){
              values[key] = Big(values[key]).toFixed(2)
            }else{
              values[key]='--'
            }

          }
          this.FK04Values = values
        }
      })
    },

    openGYDXS(){
      this.$router.push('/gydxs')
    },
    openDYDXS(){
      this.$router.push('/dydxs')
    },
    openRYDXS(){
      this.$router.push('/rydxs')
    },
    openXYDXS(){
      this.$router.push('/xydxs')
    },
    goHome(){
      this.$router.push('/home')
    }

  }

}
</script>

<style lang="less" scoped>

body {
  font-family: 'myriad-pro', 'Arial' !important;
  margin: 0;
  padding: 0;
}

.w-100 {
  width: 100%;
}

.flex {
  display: flex;
}

.flex-0 {
  flex: 0 0 auto;
}

.flex_c_c {
  display: flex;
  align-items: center;
  justify-content: center;
}

.align-c {
  align-items: center;
}

.align-t {
  align-items: flex-start;
}

.align-b {
  align-items: flex-end;
}

.justify-l {
  justify-content: flex-start;
}

.justify-c {
  justify-content: center;
}

.justify-r {
  justify-content: flex-end;
}

.justify-y {
  justify-content: space-between;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  margin: auto;
  max-width: 68.750vw;
}

ul, li, p {
  margin: 0;
  padding: 0;
  list-style: none;
}


.header {
  position: relative;
  box-sizing: content-box;
  height: 6.875vw;

  > img {
    width: 100%;
  }

  .box {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 99;

    .title {
      font-size: 2.188vw;
      font-weight: bold;
      text-align: center;
      margin-top: 2.240vw;
      text-shadow: 0 0.208vw 0.208vw rgba(0, 0, 0, 0.25);
      background: linear-gradient(180deg, #FFFFFF 0%, #83C3EF 83%, #0184DE 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

  }
}


.bg {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 0.729vw;
  line-height: 1;
  background-image: url('../img/bg.png');
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  color: #fff;

}


.dp_con {
  position: relative;
  //background-image: url("../img/line2.svg");
  background-size: 97.6%;
  height: calc(100vh - 6.354vw);
  background-repeat: no-repeat;
  background-position: center bottom;
  padding: 0 0.833vw;
  display: flex;
  margin-top: -2.083vw;


  .left {
    width: 26.302vw;
    flex: 0 0 auto;
  }

  .right {
    width: 26.302vw;
    flex: 0 0 auto;
  }

  .center {
    width: 100%;
    padding: 0 0.833vw;
  }
}

.card {
  margin-bottom: 0.625vw;
  text-align: left;
  background: rgba(10, 63, 152, 0.2);
  position: relative;
  padding: 0.417vw;
  box-sizing: border-box;

  .title {
    display: flex;
    align-items: center;
    background-size: 100%;
    background-position: bottom;
    padding-bottom: 0.521vw;
    font-size: 0.938vw;
    font-weight: bold;
    margin-bottom: 0.313vw;
    background-repeat: no-repeat;
    text-shadow: 0 0 0.521vw #00b6ff;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 3.385vw;
      height: 0.156vw;
      background: #0086FF;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 3.646vw;
      right: 2.604vw;
      height: 0.156vw;
      background: #083566;
    }

    .icon1 {
      margin-right: 0.625vw;
      width: 0.781vw;
    }

    .icon2 {
      position: absolute;
      width: 2.500vw;
      bottom: 0;
      right: 0;
    }

    .tag {
      position: absolute;
      right: 0;
      background: #00F535;
      color: #fff;
      font-size: 0.729vw;
      padding: 0.156vw 0.313vw;
      border-radius: 0.156vw;

      &.red {
        background: #F50000;
      }
    }
  }

  .body {
    position: relative;
    padding: 0.417vw;
    box-sizing: border-box;
    height: calc(100% - 2.396vw);

    > .img {
      position: absolute;
      width: 0.521vw;

      &.t1 {
        left: 0;
        top: 0;
      }

      &.t2 {
        right: 0;
        top: 0;
        transform: rotate(90deg);
      }

      &.t3 {
        left: 0;
        bottom: 0;
        transform: rotate(270deg);
      }

      &.t4 {
        right: 0;
        bottom: 0;
        transform: rotate(180deg);
      }
    }

  }
}

.height_50 {
  height: calc(50% - 0.625vw)
}

.height_3 {
  height: calc(33.33% - 0.625vw)
}

.height_6 {
  height: calc(66.66% - 0.625vw)
}

/* 整个滚动条 */
::-webkit-scrollbar {
  width: 0.313vw; /* 滚动条宽度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0); /* 轨道背景色 */
  border-radius: 0.313vw;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #9dbfd2; /* 滑块背景色 */
  border-radius: 0.313vw;
}

/* 滚动条滑块悬停状态 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 滑块悬停时的背景色 */
}


.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  img {
    display: block;
    margin: auto;
    width: 70.729vw;
  }
}

.sckg {
  display: flex;
  justify-content: space-between;

  .item {
    width: 4.688vw;
    text-align: center;

    img {
      width: 100%;
      display: block;
    }

    .text1 {
      position: relative;
      top: -2.604vw;
      font-weight: bold;
      font-size: 1.458vw;
      color: #FFFFFF;
      line-height: 1;
      background: linear-gradient(180deg, #FFFFFF 0%, #55D0FF 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-top: -0.781vw;
    }

    .text2 {
      font-size: 0.625vw;
    }
  }
}

.sckg_tb {
  height: calc(100% - 6.458vw);
  margin-top: 0.625vw;
}

.sbxj {
  display: flex;
  justify-content: space-between;

  .item {
    flex: 1;
    text-align: center;

    img {
      width: 3.646vw;
    }

    .text1 {
      font-size: 0.573vw;
      margin: 0.521vw 0;
    }

    .text2 {
      font-size: 1.042vw;

      small {
        font-size: 0.677vw;
      }
    }
  }
}

.sbxj_tb {
  height: calc(100% - 7.813vw);
  margin-top: 0.625vw;
}


.znaf_tb {
  display: flex;
  height: 100%;
}

.ydtj {
  display: flex;

  .icon1 {
    width: 5.729vw;
    margin: 1.042vw 1.302vw 0 0.625vw;
  }

  .item {
    position: relative;
    font-size: 0.729vw;
    margin-bottom: 0.625vw;

    img {
      width: 100%;
      display: block;
    }

    .text1 {
    }

    .text2 {
      font-size: 1.250vw;
      font-weight: bold;
      position: relative;
      top: -0.052vw;
    }

    .text3 {
      margin-left: 0.625vw;
    }

    .info {
      position: absolute;
      left: 1.354vw;
      right: 0.729vw;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
    }
  }
}

.ydtj_tb {
  height: calc(100% - 8.125vw);
}

.sbjx {
  display: flex;
  justify-content: space-around;

  .item {
    text-align: center;
    flex: 1;

    div {
      height: 5.208vw;
    }

    p {
      margin-top: 0.625vw;
    }

    &.v2 {
      div {
        height: 6.771vw
      }
    }
  }
}


.sbjx_tb {
  height: calc(100% - 7.292vw);
  margin-top: 0.625vw;

}

.zw {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.sblyl {
  height: 100%;
}


.sbxj_tb {
  height: calc(100% - 8.594vw);
  margin-top: 0.625vw;
}


.xnzb_c {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;

  .r1 {
    width: 21.354vw;

    .item {
      margin: 2.083vw 0;
    }

    .line {
      height: 0.156vw;
      background: rgba(255, 255, 255, 0.28);
      display: flex;
      justify-content: space-between;
      align-items: center;

      &::before, &::after {
        content: "";
        width: 1.146vw;
        height: 0.156vw;
        background: #FED9A6;
        box-shadow: 0 0 0.313vw 0 #FED9A6;
      }
    }

    .box {
      margin: 0.417vw 0;
      background: #003E59;
      border: 0.052vw solid #00F9FF;
      height: 4.167vw;
      display: flex;
      align-items: center;
      padding: 0 1.250vw 0 0;
      box-sizing: border-box;

      img {
        width: 4.167vw;
        height: 4.167vw;
        margin-right: 0.625vw;
      }

      .text1 {
        font-size: 0.885vw;
      }

      .text2 {
        font-size: 0.729vw;
        margin-top: 0.625vw;
      }

      .text3 {
        font-size: 1.667vw;
        color: #12E4F5;
        font-weight: bold;
      }

      &.v2 {
        background: #0B2248;
        border: 0.052vw solid #2F6EDD;

        .text3 {
          color: #2F6EDD;
        }
      }
    }
  }

  .r2 {
    position: relative;

    .bg2 {
      width: 26.823vw;
      display: block;
      padding: 2.083vw 2.083vw 0 2.083vw;
      box-sizing: border-box;
    }

    .item {
      text-align: center;
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;

      .text1 {
        width: 3.333vw;
        height: 3.333vw;
        text-align: center;
        line-height: 3.333vw;
        background-image: url("../img/icon7.svg");
        border-radius: 100%;
        margin: auto;
        font-size: 1.042vw;
      }

      .text2 {
        margin-top: 0.417vw;
      }

      &:nth-child(1) {
        top: 35%;
      }

      &:nth-child(2) {
        top: 0;
        left: 13%;
      }

      &:nth-child(3) {
        top: 0;
        left: 75%;
      }

      &:nth-child(4) {
        top: 38%;
        left: 87%;
      }
    }
  }
}


.scgl-title {
  text-align: center;
  margin-bottom: 0.625vw;
}

.scgl_t1 {
  display: flex;
  flex-wrap: wrap;

  .item {
    width: 50%;
    height: 50%;
    padding: 0.625vw 0;
    box-sizing: border-box;
    display: flex;

    .flex-0 {
      height: 100%;
      width: 50%;
    }

    .flex_c_c {
      justify-content: flex-start;
      padding-left: 0.625vw;
    }
  }
}

.scgl_t2 {
  .tb {
    height: calc(100% - 2.292vw);
  }
}


.c_img {
  position: absolute;
  width: 50%;
  left: 25%;
  top: 10%;

  img {
    width: 100%;
  }
}


.scgl_t3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  .item {
    width: 16.667vw;
    height: 4.635vw;
    background-image: url("../img/p5.svg");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.042vw;

    .text1 {
      margin-right: 1.042vw;
    }

    .text2 {
      font-size: 2.188vw;
      font-weight: bold;
      color: #0BF9FE;

      small {
        font-size: 0.833vw;
        font-weight: 500;
        color: #fff;
      }
    }

    &.v2 {
      background-image: url("../img/p6.svg");

      .text2 {
        color: #07E96C;
      }
    }
  }
}


.sjtj {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 1;

  .item {
    width: 7.083vw;
    text-align: center;

    .text1 {
      font-size: 1.406vw;
      color: #FFFFFF;
      letter-spacing: 0.052vw;
      font-style: normal;
      text-transform: none;
    }

    .text2 {
      color: rgba(255, 255, 255, 0.7);
      width: 7.083vw;
      line-height: 1.458vw;
      background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #4E3B01 49%, rgba(0, 0, 0, 0) 100%);
      position: relative;
      margin-top: 0.625vw;

      &::after, &::before {
        content: "";
        width: 100%;
        height: 0.052vw;
        background: linear-gradient(90deg, rgba(87, 69, 0, 0) 0%, #FFCB00 49%, rgba(126, 101, 0, 0) 100%);
        position: absolute;
        top: 0;
        left: 0;
      }

      &::before {
        bottom: 0;
        top: auto;
      }
    }

    img {
      width: 5.417vw;
      margin-top: -1.042vw;
    }

    &.v2 {
      margin-top: 3.646vw;

      img {
        width: 6.458vw;
      }

      .text2 {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.02) 0%, #01434E 49%, rgba(0, 0, 0, 0) 100%);

        &::after, &::before {
          background: linear-gradient(90deg, rgba(0, 46, 87, 0) 0%, #00C2FF 49%, rgba(0, 104, 126, 0) 100%);
        }
      }
    }
  }
}

.sjtj-bg {
  width: 100%;
  margin-top: -100%;
  position: relative;
  top: -3.490vw;
}


.zhaf_t1 {
  padding: 2.083vw 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;

  .r1 {
    height: 50%;
    position: relative;

    img {
      height: 100%;
      display: block;
    }

    .box {
      position: absolute;
      z-index: 2;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 1.250vw;

      img {
        width: 100%;
        height: 100%;

      }
    }
  }

  .r2 {
    height: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    img {
      height: 90%;
      display: block;
    }
  }
}

.zhaf_t2 {
  overflow: auto;
  height: 100%;

  ul {

    li {
      display: flex;
      margin-bottom: 0.625vw;
      position: relative;

      &::before {
        content: "";
        position: absolute;
        left: 0.781vw;
        height: 100%;
        background: #ff0000;
        top: 1.042vw;
        width: 0.052vw;
      }

      &:nth-last-child(1) {
        &::before {
          content: "";
          position: absolute;
          left: 0.781vw;
          height: 0;
          background: #ff0000;
          top: 1.042vw;
          width: 0.052vw;
        }
      }

      .icon1 {
        width: 1.510vw;
        margin-right: 0.625vw;
      }

      .info {
        position: relative;

        .box {
          position: absolute;
          z-index: 2;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          padding: 1.250vw;
          display: flex;
          flex-direction: column;
          justify-content: space-around;

          .btn_box {
            position: absolute;
            right: 1.250vw;
            bottom: 1.250vw;

            button {
              width: 5.521vw;
              height: 1.667vw;
              background: #2F51FF;
              border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
              display: flex;
              align-items: center;
              justify-content: center;
              border: none;
              color: #fff;
              margin-top: 0.625vw;
              cursor: pointer;

              &:hover {
                background: #4a68ff;
              }
            }
          }
        }
      }
    }
  }
}

.zhaf_t3 {
  width: 29.688vw !important;
}

.dp_con {
  position: relative;
  z-index: 9;

  .left.v2 {
    width: 55%;
    padding-right: 0.417vw;
  }

  .right.v2 {
    width: 45%;
    padding-left: 0.417vw;
  }
}

.ydtj_t1 {
  height: 100%;
  display: block;
  width: 100%;
  object-fit: cover;
  padding-bottom: 0.625vw;
  box-sizing: border-box;
}

.ydtj_t2 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .item {
    background-image: url("../img/bg6.svg");
    width: 13.333vw;
    height: 5.156vw;
    background-size: cover;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    p {
      padding-left: 4.167vw;
      width: 100%;
      box-sizing: border-box;
    }

    .text1 {
      font-weight: bold;
      font-size: 1.354vw;
      letter-spacing: 0.104vw;
      background: linear-gradient(180deg, #FFFFFF 0%, #20F14E 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 0.417vw;
    }

    &:nth-child(1), &:nth-child(2), &:nth-child(3) {
      margin-bottom: 1.042vw;
      background-image: url("../img/bg5.svg");

      .text1 {
        background: linear-gradient(180deg, #FFFFFF 0%, #0BF9FE 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
    }
  }
}

.p-8 {
  margin: 0 -0.417vw;

  .w-100 {
    padding: 0 0.417vw;
    box-sizing: border-box;
  }
}

.scgl_t4 {
  height: calc(60% - 0.625vw);
  margin-bottom: 0.625vw;
  padding-top: 2.604vw;
  box-sizing: border-box
}

.zhaf_h {
  height: calc(50% - 8.646vw - 0.625vw)
}

.ydtj_h {
  height: calc(50% - 8.333vw)
}


.sbdxj_t1 {
  display: flex;
  align-items: center;
  justify-content: space-around;

  img {
    width: 7.500vw;
  }

  .text1 {
    text-align: center;
    font-size: 1.250vw;
  }

  .text2 {
    text-align: center;
    color: #00F535;
    font-size: 1.250vw;
    margin-top: 1.563vw;
  }
}


.sbdxj_t2 {
  overflow: auto;
  height: calc(100vh - 24.333vw);

  img {
    width: 2.813vw;
    margin-right: 1.042vw;
  }

  .text1 {
    text-align: center;
    font-size: 0.833vw;
    min-width: 10vw;
  }

  .flex_c_c {
    margin: 2.933vw 0;
  }
}

.sbdxj_t3 {
  width: 100%;
  height: 100%;

  tr {
    td {
      line-height: 1.146vw;

      &.text1 {
        color: #00F8FF;
        font-size: 0.833vw;
      }

      &.text2 {
        color: #66A3FF;
        text-align: right;
        padding-right: 0.625vw;
      }

      input {
        width: 3.333vw;
        height: 1.042vw;
        background: none;
        border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
        border: 0.052vw solid #4193FF;
        display: block;
        color: #fff;
        font-size: 0.729vw;
        text-align: center;
      }
    }
  }
}

.sbdxj_t4 {
  display: flex;
  align-items: center;
  position: relative;
  height: calc(100% - 3.125vw);
  margin: 1.042vw 1.042vw 0 1.042vw;

  .sb {
    width: 90%;
    margin: 10% 0 0 auto;
    opacity: 0.7;
    pointer-events: none;
  }
}


.card2 {

  position: absolute;
  left: 0;
  top: 0;

  .bg2 {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;

    .r1 {
      display: flex;

      img {
        height: 2.604vw;

        &:nth-child(2) {
          width: 100%;
        }
      }
    }

    .r2 {
      height: calc(100% - 5.208vw);
      width: 100%;
      display: block;
    }

    .r3 {
      display: flex;

      img {
        height: 2.604vw;

        &:nth-child(2) {
          width: 100%;
        }
      }
    }
  }

  .box {
    padding: 1.250vw;
    min-width: 16.146vw;
    box-sizing: border-box;
    position: relative;
  }

}


.dydxs_box {
  height: 100%;
  width: 100%;

  .row {
    display: flex;
    height: 50%;
    width: 100%;

    .col {
      width: 20%;
      height: 100%;
      padding: 0.625vw 0.208vw;
      box-sizing: border-box;
    }
  }
}

.dydxs_t1{
  position: relative;
  height: 100%;
  .sb{
    display: block;
    width: 60%;
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

.alarm {
  color: red;
}
.normal{
  color: #0BF9FE;
}

</style>



